package queue

import "context"

// Comparor 排序方法
type Comparor[T any] func(a, b T) bool

type Queue[T any] interface {
	Enqueue(ctx context.Context, t T) error
	Dequeue(ctx context.Context) (T, error)
}
